home *** CD-ROM | disk | FTP | other *** search
/ Champak 99 / (Vol 99) Jan 19 2010.iso / Games / balls.swf / scripts / frame_1 / DoAction.as < prev   
Text File  |  2010-01-19  |  929b  |  27 lines

  1. stop();
  2. bonusAdd = 0;
  3. bonusGive = false;
  4. Stage.scaleMode = "noScale";
  5. n = 0;
  6. _global.shoot = function()
  7. {
  8.    n++;
  9.    if(n == 50 || n == 400 || n == 1000 || n == 5000)
  10.    {
  11.       if(n == 5000)
  12.       {
  13.          _root.spawn.attachMovie("menuBalls","ball" + n,_root.spawn.getNextHighestDepth(),{_x:225 + random(200) - 100,_y:500,dx:random(10) - 5,dy:-5,_xscale:400,_yscale:400,n:1000,_currentframe:2});
  14.          _root.spawn["ball" + n].gotoAndStop(2);
  15.       }
  16.       else
  17.       {
  18.          _root.spawn.attachMovie("menuBalls","ball" + n,_root.spawn.getNextHighestDepth(),{_x:225 + random(200) - 100,_y:500,dx:random(10) - 5,dy:-5,_xscale:400,_yscale:400,n:n,_currentframe:2});
  19.          _root.spawn["ball" + n].gotoAndStop(2);
  20.       }
  21.    }
  22.    else
  23.    {
  24.       _root.spawn.attachMovie("menuBalls","ball" + n,_root.spawn.getNextHighestDepth(),{_x:225 + random(200) - 100,_y:500,dx:random(10) - 5,dy:-5});
  25.    }
  26. };
  27.